package com.example.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.example.domain.StudentClassesTuition;

@Repository
public interface StudentClassesTuitionDao extends JpaRepository<StudentClassesTuition, Integer> {

    @Transactional
    @Modifying
    Integer deleteByStudentTuitionId(Integer studentTuitionId);

    List<StudentClassesTuition> findByStudentTuitionId(Integer studentTuitionId);

    @Transactional
    @Modifying
    Integer deleteByStudentTuitionIdIn(List<Integer> listId);

}
